package com.coda.mapper;

import com.coda.pojo.Word;
import com.coda.pojo.WordSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 默写设置mapper接口
 */
@Mapper
public interface WordSettingMapper {

    /**
     * 添加默写设置
     * @param wordSetting
     * @return
     */
    int add(WordSetting wordSetting);

    /**
     * 删除单词设置
     * @param
     * @return
     */
    int delete(Integer userId);

    /**
     * 获取当前用户的单词设置
     * @param currentId
     * @return
     */
    WordSetting getByUserId(Integer currentId);
}
